package com.iasku.entity;

/**
 * ѧ���γ���
 */
public class IaskuCourse {
	private String courseid; // �γ̱��
	private String coursename; // �γ�����
	private String subject; // �γ�ѧ��
	private String teacherid; // �Ͽν�ʦ
	private String begintime; // �Ͽ�ʱ��
	private String ifpreview; // �Ƿ�Ԥϰ
	private String ifend; // �Ƿ�ϰ
	private String classtype; // �γ�����,0-���ӿ���,1-���п���
	private String endtime; // ����ʱ��
	private String classstate; // �γ�״̬�������жϸ�ϰ����Ԥϰ��
	

	public IaskuCourse(){
		
	}
	
	public IaskuCourse(String courseid, String coursename, String subject,
			String teacherid, String begintime, String ifpreview, String ifend,
			String classtype, String endtime, String classstate) {
		this.courseid = courseid;
		this.coursename = coursename;
		this.subject = subject;
		this.teacherid = teacherid;
		this.begintime = begintime;
		this.ifpreview = ifpreview;
		this.ifend = ifend;
		this.classtype = classtype;
		this.endtime = endtime;
		this.classstate = classstate;
	}



	public String getCourseid() {
		return courseid;
	}

	public void setCourseid(String courseid) {
		this.courseid = courseid;
	}

	public String getCoursename() {
		return coursename;
	}

	public void setCoursename(String coursename) {
		this.coursename = coursename;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getTeacherid() {
		return teacherid;
	}

	public void setTeacherid(String teacherid) {
		this.teacherid = teacherid;
	}

	public String getBegintime() {
		return begintime;
	}

	public void setBegintime(String begintime) {
		this.begintime = begintime;
	}

	public String getIfpreview() {
		return ifpreview;
	}

	public void setIfpreview(String ifpreview) {
		this.ifpreview = ifpreview;
	}

	public String getIfend() {
		return ifend;
	}

	public void setIfend(String ifend) {
		this.ifend = ifend;
	}

	public String getClasstype() {
		return classtype;
	}

	public void setClasstype(String classtype) {
		this.classtype = classtype;
	}

	public String getEndtime() {
		return endtime;
	}

	public void setEndtime(String endtime) {
		this.endtime = endtime;
	}

	public String getClassstate() {
		return classstate;
	}

	public void setClassstate(String classstate) {
		this.classstate = classstate;
	}
	
	public boolean isEnd(){
		String end = this.endtime.replace(" ", "");
		if("".equals(end)){
			return false;
		}else{
			return true;
		}
	}
	
	public boolean isEleClass(){
		if("0".equals(this.classtype)){
			return true;
		}
		return false;
	}
	
	public boolean isAirClass(){
		if("1".equals(this.classtype)){
			return true;
		}
		return false;
	}

	@Override
	public String toString() {
		return "StudentCourse [courseid=" + courseid + ", coursename="
				+ coursename + ", subject=" + subject + ", teacherid="
				+ teacherid + ", begintime=" + begintime + ", ifpreview="
				+ ifpreview + ", ifend=" + ifend + ", classtype=" + classtype
				+ ", endtime=" + endtime + ", classstate=" + classstate + "]";
	}

}
